package com.tang.generate.model.req

import com.tang.common.model.BaseVO
import io.swagger.v3.oas.annotations.media.Schema
import lombok.Data
import java.io.Serializable
import java.util.Arrays

@Schema
@Data
class TableAddReq(
        @Schema(description = "原表名")
        var originTableName: String? = "",

        @Schema(description = "表名")
        var tableName: String? = "",

        @Schema(description = "类名")
        var className: String? = "",

        @Schema(description = "数据库名称")
        var databaseName: String? = "",

        @Schema(description = "描述")
        var desc: String? = "",
        @Schema(description = "表字符集")
        var charset: String? = "",
        @Schema(description = "表字符排序规则")
        var charsetSort: String? = "",

        @Schema(description = "自增起始")
        var autoIncrement: Long? = 0L,

        @Schema(description = "引擎")
        var engine: String? = "",

        @Schema(description = "字段")
        var fieldList: List<TableFieldReq>? = arrayListOf(),

        @Schema(description = "表索引")
        var indexList: List<TableIndexReq>? = arrayListOf()
) : BaseVO(){

}
